<template>
	<view>
		<view class="item" v-for="item in list">
			<view class="top row-between-center">
				<view class="row">
					<image src="/static/images/person.png" class="avater"></image>
					<view class="col" style="margin-left: 20rpx;">
						<view class="name">张三</view>
						<view class="mobile">13008329321</view>
					</view>
				</view>
				
				<view class="col" >
					<view class="status-wait" v-if="item.status==0">待核销</view>
					<view class="status-wait" v-if="item.status==1">已核销</view>
					<view class="status-wait" v-if="item.status==2">申请退款</view>
					<view class="status-wait" v-if="item.status==3">已退款</view>
					<view class="status-wait">¥120.00</view>
				</view>
			</view>
			
			<view class="row-end" style="margin-top: 20rpx;" v-if="item.status==0 ||item.status==2">
				<view class="btn-reject row-center"  v-if="item.status==0">核销</view>
				<view class="btn-agree row-center"  v-if="item.status==2">同意</view>
				<view class="btn-reject row-center"  v-if="item.status==2">驳回</view>
			</view>
			
			<view style="height: 20rpx;" v-if="item.status==0 ||item.status==2"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{status:0},
					{status:1},
					{status:2},
					{status:3},
				]
			}
		},
		methods: {
			
		}
	}
</script>
<style>
	page{
		background: #F2F3F8;
	}
</style>
<style lang="scss" scoped>
	.item{
	
		margin: 20rpx;
		border-radius: 12rpx;
		background: #F7F8FC;
		.top{
			padding: 30rpx 20rpx;
			border-radius:  12rpx 0;
			background: white;
		}
		.avater{
			width: 80rpx;
			height: 80rpx;
		}
		.name{
			color:  #20252B;
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; /* 150% */
		}
		.mobile{
			color:  #6A6876;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 400;
			line-height: 40rpx; /* 166.667% */
		}
		.status-wait{
			color:  #FF8934;
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; /* 150% */
		}
		
		.status-checked{
			color:  #6A6876;
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; /* 150% */
		}
		
		.status-wait-refund{
			color:  #EA401D;
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; /* 150% */
		}
		.status-refund{
			color:  rgba(106, 104, 118, 0.45);
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; /* 150% */
		}
		.price{
			color: #FF8934;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 700;
			line-height: 40rpx; /* 166.667% */
		}
		.btn-reject{
			margin-right: 20rpx;
			border-radius: 32rpx;
			background: #FFF;
			width: 120rpx;
			height: 64rpx;
			
			color: #676C7F;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 400;
			line-height: 40rpx; /* 166.667% */
		}
		.btn-agree{
			border-radius: 32rpx;
			background: #FFF;
			width: 120rpx;
			height: 64rpx;
			color: #347FFF;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 400;
			line-height: 40rpx; /* 166.667% */
		}
		
	}
</style>
